$theme: (
    default:(
        /* 主页背景颜色 */
        bgColor:linear-gradient(90deg, #e4eff9, #bbccd9, #bdd6d6, #c3dadd, #cbd7e3),
        /* 主页文章区域颜色 */
        articleItemColor:rgb(218, 237, 244),
        /* 主页公告颜色 */
        NoticeColor:#c0deee,
        /* 头部颜色 */
        headerColor:#c1d1dd,
        headerhover:#3b98d2,
        /* 文字颜色 */
        fontColor:#000000,
        /* 文字的类型 */
        fontfamily:"xxk",
        /* 鼠标移入的颜色 */
        hoverBorder:1.5px solid #ebf4fe,
        hoverfontColor:#eea36d,
        /* 主页右侧的颜色 */
        nowme:#c8dff4,
        rigthitemColor: rgb(218, 237, 244),
        rigthitemTopColor:rgba(208, 235, 226, 0.992),
        /* 页尾颜色 */
        footerColor:linear-gradient(90deg, #b4cfe6, #cce2dd, #dff2f0, #cde7f2),
        /* 文章页尾颜色 */
        articleFootColor:#d9ecec,
        articleFootColortop:#f1e8f4,
        textareacolor:#d1a9a9,
        /* 说说颜色 */
        shuoshuoitemcolor:#d7f2f487,
        emojiColor:#e2ecd4d5,
        imgmask:rgba(0, 0, 0, 0.1),
        /* 分页器的颜色 */
        bottomColor:rgb(13, 240, 161),
        bottomColorhover:rgb(157, 239, 211),

        /* 友链 */
        FriendColor:#dceef8a3,
        FriendapplyColor:#c5e7fbbd,
        FriendMysiteColor:#b3ccf8c2,

        /* 藏宝图 */
        ToolcontentColor:#c6fff9aa,
        ToolbigboxColor:#c6fff9aa,
        ToolheaderColor:#c6fff9aa,
        toolItemBg:#ffffff,
        /* 相册 */
        albumlistColor:#d5f5ffb5,
        imglistColor:#eefbffc4,

        musicsearchColor:#c8f2ffe7,
        musicplaylistColor:#cae4ffe7,
        musicleftColor:#d2efffc6,
        musicLyriccolor:-webkit-linear-gradient(bottom,rgb(41, 229, 214),#1961dd,rgb(72, 228, 33)),
    ),
    Pinktheme:(
         /* 主页背景颜色 */
         bgColor:linear-gradient(90deg, #FCF0F1, #D7DDF4, #FFEBF4, #FFF5FA),
         /* 主页文章区域颜色 */
         articleItemColor:rgb(248, 207, 229),
         /* 主页公告颜色 */
         NoticeColor:rgb(248, 207, 229),
         /* 头部颜色 */
         headerColor:#edcbe1,
         headerhover:#dd3ea8,
         /* 文字颜色 */
         fontColor:#1d0111,
         /* 文字的类型 */
         fontfamily:"djy",
         /* 鼠标移入的颜色 */
         hoverBorder:1.5px solid #daeeed,
         hoverfontColor:#e03367,
         /* 主页右侧的颜色 */
         nowme:#e795b4,
         rigthitemColor: rgb(240, 214, 227),
         rigthitemTopColor:rgba(196, 177, 182, 0.992),
         /* 页尾颜色 */
         footerColor:linear-gradient(90deg, #FCF0F1, #ee7aa5, #efdff2, #f1a7a7),
         /* 文章页尾颜色 */
         articleFootColor:#feebf7,
         articleFootColortop:#ffcbcb,
         textareacolor:#d1a9a9,
         /* 说说颜色 */
         shuoshuoitemcolor:#ffc2e074,
         emojiColor:#ffe8f9d5,
         imgmask:rgba(0, 0, 0, 0.2),
         /* 分页器的颜色 */
         bottomColor:rgb(240, 13, 134),
         bottomColorhover:rgb(227, 50, 91),
 
         /* 友链 */
         FriendColor:#ffe4fabe,
         FriendapplyColor:#dd89b6be,
         FriendMysiteColor:#ecd7ddbe,
 
         /* 藏宝图 */
         ToolcontentColor:#e7cbd6aa,
         ToolbigboxColor:#c6ffd9aa,
         ToolheaderColor:#c6ffd9aa,
         toolItemBg:#ffffff,
         /* 相册 */
         albumlistColor:#ffebf586,
         imglistColor:#f7deea8b,

        musicsearchColor:#ead5ffe7,
        musicplaylistColor:#ecd1ede7,
        musicleftColor:#f5d3eec6,
        musicLyriccolor:-webkit-linear-gradient(bottom,rgb(172, 114, 208),#dd85ca,rgb(119, 187, 221)),
    )
);
$curThem: default;

@mixin userTheme() {
    @each $themeKey, $themeValue in $theme {
        $curThem: $themeKey !global;

        html[data-theme='#{$themeKey}'] & {
            @content;
        }
    }
}

@function getThemeValue($themeKey) {
    @return map-get(map-get($theme, $curThem), $themeKey);
}